import Vue from "vue";
import VueRouter from "vue-router";
import Index from "@/views/index.vue";
import New from "@/views/new.vue";
import Sport from "@/views/sport.vue";
import SportIndex from "@/views/sportindex.vue";
import SportGn from "@/views/sportgn.vue";
import SportGw from "@/views/sportgw.vue";

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    { path: "/index", component: Index },
    { path: "/new", component: New },
    {
      path: "/sport",
      component: Sport,
      children: [
        { path: "/sportindex", component: SportIndex },
        { path: "/gn", component: SportGn },
        { path: "/gw", component: SportGw },
      ],
    },
  ],
});

export default router;
